package cn.iocoder.yudao.module.reclaim.controller.admin.productcheckres.vo;

import cn.iocoder.yudao.module.reclaim.dal.dataobject.productcheckres.ReclaimCheckDeductItemDO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Schema(description = "管理后台 - 回收核验结果新增/修改 Request VO")
@Data
public class ReclaimCheckResSaveReqVO {
    
//    @NotNull(message = "订单类型不能为空")
    private Integer orderType;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "709")
    private Long id;

    @Schema(description = "订单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7577")
    @NotNull(message = "订单id不能为空")
    private String orderNo;

    @Schema(description = "客户输入重量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "客户输入重量不能为空")
    private BigDecimal weightMember;

    @Schema(description = "核验前重量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "核验前重量不能为空")
    @Min(value = 1, message = "核验前重量必须大于0")
    private BigDecimal weightCheckBefore;

    @Schema(description = "核验后重量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "核验后重量不能为空")
    @Min(value = 1, message = "核验后重量必须大于0")
    private BigDecimal weightCheckAfter;

    @Schema(description = "原料类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "原料类型不能为空")
    private Integer metalType;

    @Schema(description = "纯度百分比", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "纯度百分比不能为空")
    private BigDecimal purePercent;

    @Schema(description = "寄出前图片", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "寄出前图片不能为空")
    private List<String> undeliveryPic;

    @Schema(description = "核验前图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "核验前图片不能为空")
    private List<String> uncheckPic;

    @Schema(description = "核验后图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "核验后图片不能为空")
    private List<String> checkPic;

    @Schema(description = "是否扣除")
    private Boolean isDeduct;

    @Schema(description = "回收核验扣除项列表")
    private List<ReclaimCheckDeductItemDO> checkDeductItems;

}